package com.ucode.hrm.typehandler;

import com.ucode.model.hrm.HrmEmployeePicInfo;
import com.ucode.springboot.starter.mybatis.core.typehandler.AbstractJsonTypeHandler;
import com.ucode.tool.util.JsonUtils;

public class HrmEmployeePicInfoTypeHandler extends AbstractJsonTypeHandler<HrmEmployeePicInfo> {

    @Override
    protected HrmEmployeePicInfo parse(String json) {
        return JsonUtils.parseObject(json, HrmEmployeePicInfo.class);
    }

    @Override
    protected String toJson(HrmEmployeePicInfo obj) {
        return JsonUtils.toJsonString(obj);
    }
}

    